package com.hrs.core.service;

import com.hrs.common.doMain.PageResultDto;
import com.hrs.common.result.Result;
import com.hrs.enity.db.SalaryScale;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hrs.enity.dto.SalaryViewDto;
import com.hrs.enity.ro.SalaryAddRo;
import com.hrs.enity.ro.SalaryPageRo;
import com.hrs.enity.ro.SalaryReviewRo;
import com.hrs.enity.ro.SalaryUpdateRo;

import java.util.List;

/**
* @author 纱雾休比酱
* @description 针对表【t_salary_scale(薪酬标准表)】的数据库操作Service
* @createDate 2022-12-05 23:04:49
*/
public interface SalaryScaleService extends IService<SalaryScale> {

    /**
     * 增添薪资*
     * @param salaryAddRo
     * @return
     */
    Result<String> add(SalaryAddRo salaryAddRo);

    /**
     * 复核*
     * @param salaryReviewRo
     * @return
     */
    Result<String> review(SalaryReviewRo salaryReviewRo);

    /**
     * 修改*
     * @param salaryUpdateRo
     * @return
     */
    Result<String> updateBySid(SalaryUpdateRo salaryUpdateRo);

    /**
     * 根据id获取一条记录*
     * @param id
     * @return
     */
    Result<SalaryViewDto> getSalaryById(Long id);

    /**
     * 分页查询*
     * @param salaryPageRo
     * @return
     */
    Result<PageResultDto<SalaryViewDto>> pageSalary(SalaryPageRo salaryPageRo);

    /**
     * 下拉框*
     * @return
     */
    Result<List<SalaryViewDto>> listSalary();

    /**
     * 删除*
     * @param id
     * @return
     */
    Result<String> deleteSalary(Long id);
}
